package com.tinyideatech.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tinyideatech.system.entity.CarDevice;

/**
 * @author zhangy-5
 * @date 2019-09-09
 */
public interface ICarDeviceService extends IService<CarDevice> {

    void changeStatus(CarDevice carDevice);

    /**
     * 设备和激活码绑定
     *
     * @return
     */
    boolean bindCode2Device(String deviceId, String code);

    /**
     * 设备和手机号绑定
     *
     * @return
     */
    int bindCode2Mobile(String deviceId, String mobile, String code, String pwd) throws Exception;

    /**
     * 验证激活码可用性
     *
     * @return
     */
    Integer verifyCode(String code);

    /**
     * 验证设备是否激活远程监控
     *
     * @return
     */
    Integer verifyRmon(String deviceId);

}